<html ng-app="diandanbao" class="ng-scope">
<head>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <meta content="telephone=no" name="format-detection">
    <link rel="stylesheet" href="{RES}/plugin/light7/light7.min.css">
    <link rel="stylesheet" type="text/css" href="{php echo $this->cur_mobile_path}/css/common.css?v=7"/>
    <link rel="stylesheet" type="text/css" href="{php echo $this->cur_mobile_path}/css/iconfont.css"/>
    <link rel="stylesheet" href="{RES}/mobile/{php echo $this->cur_tpl}/assets/diandanbao/weixin.css?v=1">
    <script src="{php echo $this->cur_mobile_path}/script/jquery-1.8.3.min.js"></script>
    <title>{$setting['title']}</title>
    <style>
        .ddb-secondary-nav-header .filter-switch{
            color:#28a267;
            border: 1px solid #28a267;
        }

        .ddb-secondary-nav-header .filter-switch .filter-tab {
            border-right: 1px solid #28a267;
            display: table-cell;
            width: 1%;
            text-align: center
        }
        .ddb-secondary-nav-header .filter-switch .filter-tab.active {
            background-color: #28a267;
            color: #fff
        }
        #user-profile-page .user-nav-section .user-nav-item i{
            font-size: 16px;
        }

        .text, .filter-tab{
            font-size: 14px;
        }
        .my-favorite-button {
            font-size: 14px;
        }
        .footer-bar.bar-tab .tab-item.active .icon, .bar-tab .tab-item:active .icon {
        color: {$setting['style_base']};
        }
        .footer-bar.bar-tab .tab-item.active, .bar-tab .tab-item:active {
        color: {$setting['style_base']};
        }
        #contact-us-page .user-nav-section, #user-profile-page .user-nav-section {
            filter: alpha(opacity=50);
            -moz-opacity: .75;
            -khtml-opacity: .75;
            opacity: 1;
            color: #fff;
            height: 80px;
            padding: 10px 10px;
        }
        .gray2{
            position: fixed;
            width: 100%;
            background-color: rgba(0, 0, 0, 0.7);
            display: none;
            z-index: 1002;
            top: 0;
            bottom: 0;
            left: 0;
            right: 0;
        }

        .link-KF {
            width:352px;
            height:380px;
            position:fixed;
            left:50%;
            margin-left:-190px;
            display:none;
            z-index:99999;
            text-align:center;
            overflow:hidden;
        }
        .con-ma {
            width:80%;
            height:auto;
            margin-left:14%;
            border-radius:8px;
            background-color:#E8E8E8;
            padding-bottom:10px;
            -webkit-box-sizing:border-box;
        }
        .link-KF p {
            height:50px;
            line-height:50px;
            font-size:18px;
            font-weight:none;
            color:#080808;
        }
        .link-KF img {
            max-width:203px !important;
            max-height:203px !important;
            width:100%;
            height:100%;
            margin-top:5%;
        }
    </style>
    <script>
        $(function () {
            $(".linkKeFu").click(function () {
                $(".gray2").show();
                $(".gray2").css("height", $(document).height());
                $(".link-KF").css("top", $(window).height() / 2 - 178);
                $(".link-KF").show();
            });
            $(".gray2,.con-ma").click(function () {
                $(".link-KF").hide();
                $(".gray2").hide();
            });
        });
    </script>
</head>
<body>
<div class="gray2" style="display: none;"></div>
<div class="link-KF">
    <div class="con-ma">
        <img src="{php echo $this->fm_qrcode($_W['siteroot'] . 'app/' . $this->createMobileUrl('addstore', array('marketingid' =>$marketing['id']), true), 'dish_marketing_'. $marketing['id'], '', '');}"/>
        <br/>
        扫码入驻
    </div>
</div>
{php include $this->template($this->cur_tpl.'/_pop');}
<div  style="height: 100%;overflow:auto;overflow-y:scroll;-webkit-overflow-scrolling:touch;">
    <div class="ddb-nav-header ng-scope"  style="background-color: {$setting['style_base']};border-bottom: 1px solid {$setting['style_base']};">
        <div class="nav-left-item" onclick="location.href='{php echo $this->createMobileUrl('waprestlist', array(), true)}';"><i class="fa fa-angle-left"></i></div>
        <div class="header-title ng-binding">市场专员</div>
        <div class="nav-right-item linkKeFu" style="padding-right: 12px;"><i class="fa fa-qrcode"></i></div>
    </div>
    <div id="user-profile-page" class="main-view ng-scope">
        <div id="top-user-avatar">
            <div class="avatar-section" style="background-color: {$setting['style_base']};">
                <div class="avatar">
                    <img class="ng-scope" src="{php echo tomedia($fans['headimgurl'])}">
                </div>
                <div class="name overflow-ellipsis ng-binding">
                    {$fans['nickname']}
                    <a href="{php echo $this->createMobileUrl('marketing_form', array(), true)}" style="font-size: 12px;color:#ff9458;">提现</a>
                </div>
            </div>
            <div class="user-nav-section" style="background-color: {$setting['style_base']};">
                <div class="user-nav-item">
                    <a href="#/addresses">
                        <i class="fa"> 等级</i>
                        <div class="text">
                            {$level['title']}
                        </div>
                    </a>
                </div>
                <div class="user-nav-item">
                    <a href="#/addresses">
                        <i class="fa"> 佣金比例</i>
                        <div class="text">
                            {$level['fee_rate']}%
                        </div>
                    </a>
                </div>
                <div class="user-nav-item">
                    <a href="{php echo $this->createMobileUrl('marketinglog', array('op' => 'display'), true)}">
                        <i class="fa"> 打款记录</i>
                        <div class="text">
                            查看
                        </div>
                    </a>
                </div>
            </div>
            <div class="user-nav-section" style="background-color: {$setting['style_base']};display: none;">
                <div class="user-nav-item">
                    <a href="#/addresses">
                        <i class="fa"> 可提佣金</i>
                        <div class="text">
                            <i class="fa  fa-money"> {$marketing_price}</i>
                        </div>
                    </a>
                </div>
                <div class="user-nav-item">
                    <a href="#/addresses">
                        <i class="fa"> 待审核佣金</i>
                        <div class="text">
                            <i class="fa  fa-money"> {$check_marketing_price}</i>
                        </div>
                    </a>
                </div>
                <div class="user-nav-item">
                    <a href="#/wechat_share_records">
                        <i class="fa"> 已提佣金</i>
                        <div class="text">
                            <i class="fa fa-yen"> {$ischeck_marketing_price}</i>
                        </div>
                    </a>
                </div>
            </div>
            <!--今日订单数、今天营业数、今天佣金数-->
            <div class="space-12"></div>
            <div class="ddb-nav-header ng-scope"  style="background-color: {$setting['style_base']};border-bottom: 1px solid {$setting['style_base']};">
                <div class="header-title ng-binding">今日</div>
            </div>
            <div class="user-nav-section" style="background-color: {$setting['style_base']};padding-top:10px;"  onclick="location.href='{php echo $this->createMobileUrl('marketingstore', array('op' => 'today'), true)}';">
                <div class="user-nav-item">
                    <a href="#/addresses">
                        <i class="fa"> 订单数</i>
                        <div class="text">
                            <i class="fa  fa-file-text-o"> {$today_order_count}</i>
                        </div>
                    </a>
                </div>
                <div class="user-nav-item">
                    <a href="#/wechat_share_records">
                        <i class="fa"> 营业数</i>
                        <div class="text">
                            <i class="fa fa-yen"> {$today_order_price}</i>

                        </div>
                    </a>
                </div>
                <div class="user-nav-item">
                    <a href="#">
                        <i class="fa">佣金数</i>
                        <div class="text">
                            <i class="fa fa-money">{$today_order_marketing}</i>
                        </div>
                    </a>
                </div>
            </div>
            <div class="space-12"></div>
            <div class="ddb-nav-header ng-scope"  style="background-color: {$setting['style_base']};border-bottom: 1px solid {$setting['style_base']};">
                <div class="header-title ng-binding">本月</div>
            </div>
            <div class="user-nav-section" style="background-color: {$setting['style_base']};padding-top:10px;"  onclick="location.href='{php echo $this->createMobileUrl('marketingstore', array('op' => 'nowmonth'), true)}';">
                <div class="user-nav-item">
                    <a href="#/addresses">
                        <i class="fa"> 订单数</i>
                        <div class="text">
                            <i class="fa  fa-file-text-o"> {$nowmonth_order_count}</i>
                        </div>
                    </a>
                </div>
                <div class="user-nav-item">
                    <a href="#/wechat_share_records">
                        <i class="fa "> 营业数</i>
                        <div class="text">
                            <i class="fa fa-yen"> {$nowmonth_order_price}</i>
                        </div>
                    </a>
                </div>
                <div class="user-nav-item">
                    <a href="#/addresses">
                        <i class="fa"> 佣金数</i>
                        <div class="text">
                            <i class="fa fa-money"> {$nowmonth_order_marketing}</i>
                        </div>
                    </a>
                </div>
            </div>
            <div class="space-12"></div>
            <div class="ddb-nav-header ng-scope"  style="background-color: {$setting['style_base']};border-bottom: 1px solid {$setting['style_base']};">
                <div class="header-title ng-binding">上月</div>
            </div>
            <div class="user-nav-section" style="background-color: {$setting['style_base']};padding-top:10px;" onclick="location.href='{php echo $this->createMobileUrl('marketingstore', array('op' => 'lastmonth'), true)}';">
                <div class="user-nav-item">
                    <a href="#/addresses">
                        <i class="fa"> 订单数</i>
                        <div class="text">
                            <i class="fa  fa-file-text-o"> {$lastmonth_order_count}</i>
                        </div>
                    </a>
                </div>
                <div class="user-nav-item">
                    <a href="#/wechat_share_records">
                        <i class="fa "> 营业数</i>
                        <div class="text">
                            <i class="fa fa-yen"> {$lastmonth_order_price}</i>
                        </div>
                    </a>
                </div>
                <div class="user-nav-item">
                    <a href="#/addresses">
                        <i class="fa"> 佣金数</i>
                        <div class="text">
                            <i class="fa fa-money"> {$lastmonth_order_marketing}</i>
                        </div>
                    </a>
                </div>
            </div>
            <div class="space-12"></div>
            <div class="user-nav-section" style="background-color: {$setting['style_base']};" onclick="location.href='{php echo $this->createMobileUrl('marketingstore', array('op' => 'shop'), true)}';">
                <div class="user-nav-item">
                    <a href="#/addresses">
                        <i class="fa"> 餐厅总数</i>
                        <div class="text">
                            <i class="fa  fa-store"> {$shoptotal}</i>
                        </div>
                    </a>
                </div>
            </div>
        </div>
    </div>
</div>
<script src="{php echo $this->cur_mobile_path}/script/jquery-1.8.3.min.js"></script>
{php echo register_jssdk(false);}
<script>
    wx.ready(function () {
        sharedata = {
            title: '{$share_title}',
            desc: '{$share_desc}',
            link: '{$share_url}',
            imgUrl: '{$share_image}',
            success: function(){

            },
            cancel: function(){

            }
        };
        wx.onMenuShareAppMessage(sharedata);
        wx.onMenuShareTimeline(sharedata);
    });
</script>
</body>
</html>